<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="../Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>添加管理员</title>
<style>

</style>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span><a href="{:U('Admin/Access/index')}">角色管理</a> <span class="c-gray en">&gt;</span>分配权限  <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="Huiform">
     <h1 style="text-align: center;font-size: 24px" class="text-center">为
      <span style="color:red">{$group_data['title']}</span>分配权限</h1>
    <form action="" method="post">
      <input type="hidden" name="id" value="{$group_data['id']}">
       <volist name="rule_data" id="v">
      <table class="table table-striped table-bordered table-hover table-condensed
      ">
       

            <tr class="b-group">
              <th width="12%">
                <label>{$v['title']}
                  <input type="checkbox" name="rule_ids[]" value="{$v['id']}" <if condition="in_array($v['id'],$group_data['rules'])">checked="checked"</if>onclick="checkAll(this)"></label></th>
              
                <volist name="v['erji']" id="n">
                <td class="b-child">
                  <table class="table table-striped table-bordered table-hover table-condensed">
                    <tr class="b-group">
                      <th width="10%">
                        <label>{$n['title']}
                          <input type="checkbox" name="rule_ids[]" value="{$n['id']}" <if condition="in_array($n['id'],$group_data['rules'])">checked="checked"</if>onclick="checkAll(this)"></label></th>
               
                    </tr>
                  </table>
                </volist>
              </td>
            </tr>
 
        </volist>
        <tr>
          <th></th>
          <td>
            <input class="btn btn-success" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;"></td>
        </tr>
      </table>
    </form>
    <bootstrapjs/>
    <script>function checkAll(obj) {
        $(obj).parents('.b-group').eq(0).find("input[type='checkbox']").prop('checked', $(obj).prop('checked'));
      }</script>
  </div>
</div>
<script type="text/javascript" src="../Public/js/jquery.min.js"></script>
<script type="text/javascript" src="../Public/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/H-ui.admin.js"></script> 

<script type="text/javascript">

$(function(){
	
  
});
 
</script>
</body>
</html>